#define _CRT_SECURE_NO_WARNINGS 1
#include"game.h"
void menu()
{
	printf("###################\n");
	printf("##1,game##0,exit###\n");
	printf("###################\n");

}
void game()
{   char mine[ROWS][COLS];
	char show[ROWS][COLS];
	intiboard(mine, ROWS, COLS, '0');
	intiboard(show, ROWS, COLS, '*');
	//showboard(mine, ROWS, COLS);
	showboard(show, ROWS, COLS);
	setmine(mine, ROW, COL);
	//showboard(mine, ROWS, COLS);
	findmine(mine, show, ROWS, COLS, ROW, COL);



}
int main()
{
	
	int input = 0;
	srand((unsigned)time(NULL));
	do
	{   menu();
		printf("please input a numble:>\n");
		scanf("%d", &input);
		switch (input)
		{
		case 1:
			game();
			break;
		case 0:
			printf("exit game");
			break;
		default:
			printf("please enter again");
		}
	} while (input);

	return 0;
}